package com.youuvs.org.domian;

import javafx.scene.Parent;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
    //部门id
    private Long id;
    //部门编号
    private String sn;
    //部门名称
    private String name;
    //部门路径
    private String dirPath;
    //是否可用
    private Integer state;
    //领导id
    private Long manager_id;
    //一个manager_id对应一个manager
    private Employee manager;
    //上级部门id
    private Long parent_id;
    //一个parent_id对应一个department
    private Department parent;
    //一个department对应多个子部门
    private List<Department> children = new ArrayList<>();


}
